﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="Registration" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            font-size: xx-large;
            text-align: left;
        }
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 110px;
            text-align: right;
        }
        .style4
        {
            width: 187px;
        }
        #Reset1
        {
            width: 95px;
            text-align: right;
        }
        .style5
        {
            width: 110px;
            text-align: right;
            height: 17px;
        }
        .style6
        {
            width: 187px;
            height: 17px;
        }
        .style7
        {
            height: 17px;
        }
        .style8
        {
            width: 110px;
            text-align: right;
            height: 61px;
        }
        .style9
        {
            width: 187px;
            height: 61px;
        }
        .style10
        {
            height: 61px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="style1">
    
        <strong style="text-align: left">
        <br />
        Customer Registration<br />
        <br />
        </strong></div>
    <table class="style2">
        <tr>
            <td class="style3">
                UserName</td>
            <td class="style4">
                <asp:TextBox ID="TextBoxUN" runat="server" MaxLength="15" Width="180px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBoxUN" ErrorMessage="please enter you UserName..." 
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Password</td>
            <td class="style4">
                <asp:TextBox ID="TextBoxPass" runat="server" MaxLength="15" TextMode="Password" 
                    Width="180px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBoxPass" ErrorMessage="Please Enter you Passwoed..." 
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style5">
                RetryPassword</td>
            <td class="style6">
                <asp:TextBox ID="TextBoxRPass" runat="server" MaxLength="15" 
                    TextMode="Password" Width="180px"></asp:TextBox>
            </td>
            <td class="style7">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TextBoxRPass" ErrorMessage="Please Enter you Password..." 
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
                <br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="TextBoxPass" ControlToValidate="TextBoxRPass" 
                    ErrorMessage="Please Enter you vail Password..." ForeColor="#FF3300"></asp:CompareValidator>
                <br />
            </td>
        </tr>
        <tr>
            <td class="style8">
                EmailAddress</td>
            <td class="style9">
                <asp:TextBox ID="TextBoxEA" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
            </td>
            <td class="style10">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="TextBoxEA" ErrorMessage="Please Enter you EmailAddress..." 
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
                <br />
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TextBoxEA" ErrorMessage="Please Enter you vail EmailAddress" 
                    ForeColor="#FF3300" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                FullName</td>
            <td class="style4">
                <asp:TextBox ID="TextBoxFN" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="TextBoxFN" ErrorMessage="Please Enter you FullName..." 
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Country</td>
            <td class="style4">
                <asp:DropDownList ID="DropDownListCountry" runat="server" Width="180px">
                    <asp:ListItem Selected="True">Select on...</asp:ListItem>
                    <asp:ListItem>Singapore</asp:ListItem>
                    <asp:ListItem>China</asp:ListItem>
                    <asp:ListItem>USA</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="DropDownListCountry" 
                    ErrorMessage="Please Select you Country..." ForeColor="#FF3300" 
                    InitialValue="Select on..."></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <br />
                <br />
            </td>
            <td class="style4">
                <asp:Button ID="submit" runat="server" onclick="submit_Click" Text="submit" 
                    Width="69px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td>
                <input id="Reset1" type="reset" value="Start Over" /></td>
        </tr>
    </table>
    </form>
</body>
</html>
